package com.olah.ws.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.websocket.Session;

/**
 * WebSocke 客户端
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WebSocketClient {

    private Session session;

    private String uri;

    public WebSocketClient(Session session) {
        this(session.getRequestURI().toString());
        this.session = session;
    }

    public WebSocketClient(String uri) {
        this.uri = uri;
    }

}